#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: candidate_fieldset.py 
@version:
@time: 2022/02/24 
"""
# 分组展示字段、分三块、基础信息、第一轮面试记录、第二轮面试（专业复试）、HR复试
default_fieldsets = (
    (None, {"fields": ("userid", ("username", "city", "phone"),
                       ("email", "apply_position", "born_address"),
                       ("gender", "candidate_remark"),
                       ("bachelor_school", "master_school", "doctor_school"),
                       ("major", "degree"),
                       ("test_score_of_general_ability", "paper_score"),
                       'last_editor'
                       )}),
    ("第一轮面试记录", {"fields": (
        "first_score", ("first_learning_ability", "first_professional_competency"),
        "first_advantage", "first_disadvantage", "first_result",
        "first_recommend_position", "first_interviewer_user", "first_remark",
    )}),
    ("第二轮面试记录", {"fields": (
        "second_score", ("second_learning_ability", "second_professional_competency"),
        ("second_pursue_of_excellence", "second_communication_ability", "second_pressure_score"),
        "second_advantage", "second_disadvantage",
        "second_result", "second_recommend_position", "second_interviewer_user", "second_remark",
    )}),
    ("第三轮面试记录", {"fields": (
        "hr_score", ("hr_responsibility", "hr_communication_ability", "hr_logic_ability"),
        ("hr_potential", "hr_stability"),
        "hr_advantage",
        "hr_disadvantage", "hr_result", "hr_interviewer_user", "hr_remark",
    )})
)

default_fieldsets_first = (
    (None, {"fields": ("userid", ("username", "city", "phone"),
                       ("email", "apply_position", "born_address"),
                       ("gender", "candidate_remark"),
                       ("bachelor_school", "master_school", "doctor_school"),
                       ("major", "degree"),
                       ("test_score_of_general_ability", "paper_score"),
                       'last_editor'
                       )}),
    ("第一轮面试记录", {"fields": (
        "first_score", ("first_learning_ability", "first_professional_competency"),
        "first_advantage", "first_disadvantage", "first_result",
        "first_recommend_position", "first_interviewer_user", "first_remark",
    )}),
)

default_fieldsets_second = (
    (None, {"fields": ("userid", ("username", "city", "phone"),
                       ("email", "apply_position", "born_address"),
                       ("gender", "candidate_remark"),
                       ("bachelor_school", "master_school", "doctor_school"),
                       ("major", "degree"),
                       ("test_score_of_general_ability", "paper_score"),
                       'last_editor'
                       )}),
    ("第一轮面试记录", {"fields": (
        "first_score", ("first_learning_ability", "first_professional_competency"),
        "first_advantage", "first_disadvantage", "first_result",
        "first_recommend_position", "first_interviewer_user", "first_remark",
    )}),
    ("第二轮面试记录", {"fields": (
        "second_score", ("second_learning_ability", "second_professional_competency"),
        ("second_pursue_of_excellence", "second_communication_ability", "second_pressure_score"),
        "second_advantage", "second_disadvantage",
        "second_result", "second_recommend_position", "second_interviewer_user", "second_remark",
    )}),
)